package android.slc.popup.impl;

import android.slc.popup.SlcPopup2;

/**
 * @Description:
 * @Author: sunlunchang
 * @CreateDate: 2022/04/07 下午 5:54
 */
public abstract class BaseOperateImpl<T> implements SlcPopup2.BaseOperate<T> {

    private String mKey;
    private boolean mCancelable = true;

    public BaseOperateImpl() {
        this.mKey = System.currentTimeMillis() + "";
    }

    @Override
    public SlcPopup2.BaseOperate<T> setKey(String key) {
        this.mKey = key;
        return this;
    }

    @Override
    public SlcPopup2.BaseOperate<T> setCancelable(boolean cancelable) {
        this.mCancelable = cancelable;
        return this;
    }

    @Override
    public boolean isCancelable() {
        return this.mCancelable;
    }

    @Override
    public String getKey() {
        return this.mKey;
    }

}
